//
//  Test21.cpp
//  CPPTest
//
//  Created by you5 Yi on 2021/9/25.
//

#include "Test21.hpp"
#include <iostream>
using namespace std;

void test21()
{
    float average(float a[]);
    float score[10];
    for (int i=0; i<10; i++) {
        cin >> score[i];
    }
    cout<<"average:"<<average(score)<<endl;
}

float average(float a[])
{
    float sum = 0;
    for (int i = 0; i < 10; i++) {
        sum += a[i];
    }
    return sum/10;
}
